package sakila.sakilaexcetion;

public class SakilaLogs
{

	/** The new line console out. */
	private static final String newLineConsoleOut = "========================================================================================================================================================================";

	public static void errorLogs(String msg, Exception ex)
	{
		System.err.println(SakilaLogs.newLineConsoleOut);
		System.err.println(msg);
		if (ex != null)
		{
			ex.printStackTrace();
		}
	}

	public static void errorLogs(String msg, SakilaException ex)
	{
		System.err.println(SakilaLogs.newLineConsoleOut);
		System.err.println(msg);
		ex.printStackTrace();
	}

	public static void warningLogs(String msg)
	{
		System.out.println(SakilaLogs.newLineConsoleOut);
		System.out.println(msg);
	}
}
